#ifndef __STEPPER_H
#define __STEPPER_H	 
#include "define.h"




#define STEPPER_IO_1_PORT GPIOA
#define STEPPER_IO_1_PIN 11

#define STEPPER_IO_2_PORT GPIOA
#define STEPPER_IO_2_PIN 12

#define STEPPER_IO_3_PORT GPIOA
#define STEPPER_IO_3_PIN 15

#define STEPPER_IO_4_PORT GPIOB
#define STEPPER_IO_4_PIN 3
typedef struct{
	U8 on;
	U16 state;
	U8 timer;
	U16 steps;
	U8 substate;
	U8 subtimer;
	U8 duration;
	U8 running;
}STRSTEPPERRunType;
typedef struct{
	U8 curtainstatus;
	STRSTEPPERRunType run;
}STRSTEPPERType;
extern STRSTEPPERType g_steps_stRegs;
extern void fnStepper_Init(void);
extern void fnStepper_ISR(void);		
extern void fnStepper_Con(U8 on);		
#endif
